home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 June: Reference Library / Dev.CD Jun 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 26 / develop issue 26 code / qd3d custom attributes / draft quickdraw 3d technotes / cattrs from developers / microspot custom attributes / read me < prev   
Encoding:
Text File  |  1996-04-01  |  2.0 KB  |  38 lines

  1. Here are all the custom attributes that we use plus all of the standard ones that Apple has already defined. The only thing that I do not know that we are doing right is whether the names entered in the registering of the attributes are correct. I am only documenting the custom attributes that Microspot have added although the source code contains all the Apple ones too.
  2.  
  3. struct THandleRecord
  4.     {
  5.     unsigned long theSize;
  6.     Handle theHandle;
  7.     };
  8.  
  9. All the following Microspot attributes are based around the THandleRecord structure. This basically holds a size or length followed by a handle to the data.
  10.  
  11. 'snd ': Holds a handle to a sound which can be played with PlaySnd.
  12. 'PICT': Holds a handle to a QuickDraw picture which can be drawn with DrawPicture
  13. 'TEXT': Holds a handle to a block of text. Its length is found using GetHandleSize
  14. 'moov': Holds a handle to an alias to a movie
  15. 'desc': Holds a handle to a block of text that holds the description of an object
  16.  
  17. 'LOCK': a 32 bit integer whose bits represent the objects locked or constrained state.
  18.  
  19.     kObjectLockedBit = 1 // the object is completely locked and may not be modified in any way
  20.     kObjectConstrainPosXBit = 2 // position is not allowed to move in X
  21.     kObjectConstrainPosYBit = 3
  22.     kObjectConstrainPosZBit = 4
  23.     kObjectConstrainSizeXBit = 5 // size is not allowed to grow in X
  24.     kObjectConstrainSizeYBit = 6
  25.     kObjectConstrainSizeZBit = 7
  26.     kObjectConstrainRotateXBit = 8 // angle is not allowed to rotate in X
  27.     kObjectConstrainRotateYBit = 9
  28.     kObjectConstrainRotateZBit = 10
  29.     kObjectPrimitiveBit = 11 // an object or group is a primitive and may not be ungrouped.
  30. // any suggestions for more bits??
  31.  
  32. Proposed new attributes but not implemented:
  33.  
  34. 'alis': A THandleRecord which holds a handle to an alias.
  35. 'COST': A double which holds the price of an item in a standard currency (Dollar or Pound??)
  36.  
  37. The cost attribute may need more thinking about and maybe Apple has some good ideas as to how to add a price to an item. We will need this attribute when we want to have a report of the items in a design with a costing.
  38.